
#Region "Summary"
''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvWarea
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Query Result Single Business Entity
''' </summary>
''' <remarks>
''' Sample of business entity coding
''' </remarks>
''' <history>
''' 	[Generater by Nok]	30/5/2549 10:38:02	Created
''' </history>
''' -----------------------------------------------------------------------------
#End Region

#Region ".NET Framework Class Import"
Imports System
Imports System.Xml.Serialization
Imports System.IO
Imports System.Runtime.Serialization
Imports System.Runtime.Serialization.Formatters.Binary
Imports System.Collections
#End Region

<Serializable()> _
Public Class QueryInvWarea
#Region "Internal member variables"
    Private _WareaId As String
    Private _WareaGroupId As Int32
#End Region

    Public Sub New()
        _WareaId = Nothing
        _WareaGroupId = Nothing
    End Sub

    Public Sub New(ByVal WareaId As String, _
       ByVal WareaGroupId As Int32)
        _WareaId = WareaId
        _WareaGroupId = WareaGroupId
    End Sub

#Region "Property"

    Public Property WareaId() As String
        Get
            Return _WareaId
        End Get
        Set(ByVal value As String)
            _WareaId = value
        End Set
    End Property


    Public Property WareaGroupId() As Int32
        Get
            Return _WareaGroupId
        End Get
        Set(ByVal value As Int32)
            _WareaGroupId = value
        End Set
    End Property

#End Region
End Class

''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvWareas
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Collection of query result
''' </summary>
''' <remarks>
''' Sample
''' </remarks>
''' <history>
''' 	[NOK'S Generater]	30/5/2549 10:38:02	Created
''' </history>
''' -----------------------------------------------------------------------------
<Serializable()> _
Public Class QueryInvWareas
    Inherits CollectionBase


    Default Public ReadOnly Property Item(ByVal index As Integer) As QueryInvWarea
        Get
            If (index < 0 Or index >= Me.InnerList.Count) Then
                Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
            Else
                Return CType(Me.InnerList(index), QueryInvWarea)
            End If
        End Get
    End Property

    Public Sub Add(ByVal info As QueryInvWarea)
        Me.InnerList.Add(info)
    End Sub

    Public Sub SetItem(ByVal index As Integer, ByVal value As QueryInvWarea)
        If (index < 0 Or index >= Me.InnerList.Count) Then
            Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
        Else
            Me.InnerList(index) = value
        End If
    End Sub


End Class
